package me.zhengjie.modules.rest.enterprise;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.AnonymousAccess;
import me.zhengjie.modules.domain.enterprise.EnterpriseAdministrative;
import me.zhengjie.modules.service.EnterpriseAdmService;
import me.zhengjie.modules.utils.Contents;
import me.zhengjie.modules.utils.JsonUtils;
import me.zhengjie.modules.utils.ReturnObject;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api(tags ="企业行政许可API")
@RestController
@RequiredArgsConstructor
@RequestMapping("/enterAdm")
public class EnterpriseAdmController {

    private final EnterpriseAdmService enterpriseAdmService;

    @AnonymousAccess
    @ApiOperation("根据企业名称查询行政许可信息")
    @GetMapping("/queryEnterpriseAdmByName")
    public List<EnterpriseAdministrative> queryEnterpriseAdmByName(String name){
        return enterpriseAdmService.queryEnterpriseAdmByName(name);
    }


}
